package com.honey.mybatis.generator.inversion;

import com.honey.compilation.java.Field;
import com.honey.compilation.java.Method;
import com.honey.core.types.FullyQualifiedJavaType;
import com.honey.mybatis.generator.dependent.DependentModel;

class ExtendModel implements Inversion{

//	@Override
//	public String call(String variable) {
//		return "super.getSqlSession()";
//	}

	@Override
	public FullyQualifiedJavaType extend() {
		
		return SQL_SESSION_DAO_SUPPORT;
	}

	@Override
	public Field[] inversionFiled(String fieldname) {
		return null;
	}

	@Override
	public Method[] inversionMethod(String fieldname) {
		return null;
	}

	@Override
	public String call(DependentModel dependentModel, String variable) {
		
		return (dependentModel == null?"super.":
				dependentModel.call(InversionModel.EXTEND)
				) + "getSqlSession()";
	}

}
